/** 数据管理主模块 */
import {
  legacy_createStore,
  combineReducers
} from "redux"

// 计数器模块
import counterReducer from "./counter/counterReducer"
// 品牌管理模块
import brandReducer from "./brand/brandReducer"

// 数据管理仓库实例：正在管理计数器数据
// counter和brand，类似vuex中的modules
const store = legacy_createStore(combineReducers({
  counter: counterReducer,
  brand: brandReducer
}))

export default store